package com.zhou.test.comm.weixin;

import com.zhou.core.comm.weixin.WeChatService;

/**
 * Created by zhouyongjun on 2020/7/15
 */
public class WeChatTest2 {

    public static void main(String[] args) {
        try {
            String corpid = "wwdab1a4c012ac9363";
            int agentId = 1000002;
            String corpsecret ="1xfJIDfJpQg3YrcIzCESHkUrRqYGNEC5HF6o2f8a9eA";
            String msg = "哇哈哈哈哈~~~";
            String resp = WeChatService.getInstance().sendTextMessage(corpid,corpsecret,agentId,msg,null,"ZhouYongJun");
            System.out.println("发送微信的响应数据======>" + resp);
        }catch (Exception e) {
            e.getStackTrace();
        }
    }
}
